
package com.sm.shoplook.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenpy-1072
 * @desc 项目配置参数
 * @date 2018/9/8 18:06
 * @see
 */
@Configuration
@ConfigurationProperties(prefix = "project", ignoreUnknownFields = false)
public class ProjectProperties {

	public AliSms aliSms;
	public FileConfig fileConfig;

	public static class AliSms {

		private String accessKeyId;
		private String accessKeySecret;
		private String signName;
        /**
         * 短信编码
         */
		private String templateCode;

		public String getAccessKeyId() {
			return accessKeyId;
		}

		public void setAccessKeyId(String accessKeyId) {
			this.accessKeyId = accessKeyId;
		}

		public String getAccessKeySecret() {
			return accessKeySecret;
		}

		public void setAccessKeySecret(String accessKeySecret) {
			this.accessKeySecret = accessKeySecret;
		}

		public String getSignName() {
			return signName;
		}

		public void setSignName(String signName) {
			this.signName = signName;
		}

        public String getTemplateCode() {
            return templateCode;
        }

        public void setTemplateCode(String templateCode) {
            this.templateCode = templateCode;
        }
    }

	public static class FileConfig {

		private String fileRootUploadPath;
		private String fileRootImagesPath;

		public String getFileRootUploadPath() {
			return fileRootUploadPath;
		}

		public void setFileRootUploadPath(String fileRootUploadPath) {
			this.fileRootUploadPath = fileRootUploadPath;
		}

		public String getFileRootImagesPath() {
			return fileRootImagesPath;
		}

		public void setFileRootImagesPath(String fileRootImagesPath) {
			this.fileRootImagesPath = fileRootImagesPath;
		}
	}

	public AliSms getAliSms() {
		return aliSms;
	}

	public void setAliSms(AliSms aliSms) {
		this.aliSms = aliSms;
	}

	public FileConfig getFileConfig() {
		return fileConfig;
	}

	public void setFileConfig(FileConfig fileConfig) {
		this.fileConfig = fileConfig;
	}
}
